import request from '@/utils/request'

export const getAssistList = (query) => {
  return request({
    url: '/business/assist/list',
    method: 'get',
    params: query
  })
}

export const getAssistById = (assistId, query) => {
  return request({
    url: `/business/assist/${assistId}`,
    method: 'get'
  })
}

export const addAssist = (data) => {
  return request({
    url: '/business/assist',
    method: 'post',
    data: data
  })
}

export const modifyAssist = (data) => {
  return request({
    url: '/business/assist',
    method: 'put',
    data: data
  })
}

export const delAssists = (assistIds) => {
  return request({
    url: `/business/assist/${assistIds}`,
    method: 'delete'
  })
}
